﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace DataAccess.NHibernateHelper
{
    public static class FluentNHibernateHelper
    {
        static NHibContext context;


        public static NHibContext GetContext()
        {
            Assembly assembly = Assembly.LoadFrom(AppDomain.CurrentDomain.BaseDirectory +  "\\bin\\Domain.dll");
            if(context == null)
              context = new FluentNHibContext(assembly);
            return context;
        }
    }
}
